package com.house.service;

import com.house.entity.House;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author asus
 * @since 2021-02-28
 */
public interface HouseService {
    List<House> selectHousesByHousePrice(BigDecimal startPrice, BigDecimal endPrice);

    List<House> selectHousesByHouseType(Integer roomNum, Integer hallNum, Integer maleNum,  Integer femaleNum);

    List<House> selectHousesByHousePlace(String housePlace);

    Integer insertOneHouse(House house);

    int deleteOneHouse(Integer houseId);

    List<House> selectHousesByHouseArea(Integer minArea, Integer maxArea);

    List<House> selectAllHouse();

    House selectHouseByHouseId(Integer houseId);

    Integer updateHousePictures(Integer houseId, String housePhotos);

    List<Integer> selectHasReleaseHouseId(Integer releaseId);

    List<House> selectHouseByReleaseId(Integer releaseId);

    List<House> selectHouseByHouseTypeAndHousePriceAndCentType(Integer roomNum,  Integer rentType, Integer housePrice);

    Integer updateOneHouse(House house);
}
